#ifndef __DS18B20_H
#define __DS18B20_H

#include "stm32f10x.h"                  // Device header
#include "serial.h"
#include "delay.h"

#define DS18B20_NUM 2

typedef struct
{
    GPIO_TypeDef* GPIOx;
    uint16_t Pin;
} ds18b20_config_t;

void DS18B20_Init(void);
float DS18B20_ReadTempe(uint8_t object);

#endif
